<?php
/**
 * Created by PhpStorm.
 * User: wanghaibo
 * Date: 17/11/6
 * Time: 14:15
 */

namespace App\Http\Controllers\Admin\Posts;



use App\Category;
use Illuminate\Http\Request;

class CategoryController
{
    private $categoryManager;
    private $request;
    public function __construct (Request $request)
    {
        $this->request = $request;
        $this->categoryManager = new Category();
    }
    public function entry($action = 'index',$id = null){
        $this->{$action}($id);
    }
    public function index(){
        return view('admin.posts.category.index');
    }
    public function edit(){}
    public function add(){}
    public function del(){}
}